package com.ysd.lis.entity.bac;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * <p>
 * 菌落观察结果-培养观察结果-无菌
 * </p>
 *
 * @author cfz
 * @since 2024-03-27
 */
@Entity
@Table(name = "BAC_OBSER_RESULT_NO_GERM")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "BAC_OBSER_RESULT_NO_GERM", autoResultMap = true)
public class BacObserResultNoGerm extends BaseEntityJpa {

    private static final long serialVersionUID = 1L;

    /**
     * 检验日期
     */
    @Column(name = "SAMPLEDA")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("SAMPLEDA")
    private Timestamp sampleda;

    /**
     * 报告单元
     */
    @Column(name = "RPT_GROUP")
    @TableField("RPT_GROUP")
    private String rptGroup;

    /**
     * 标本号
     */
    @Column(name = "SAMPLE_NO")
    @TableField("SAMPLE_NO")
    private String sampleNo;


    /**
     * 工作流程主键
     */
    /*@TableField("WK_FLW_ID")
    private String wkFlwId;*/
    @Column(name = "TEST_FLOW_NO")
    @TableField("TEST_FLOW_NO")
    private String testFlowNo;


    /**
     * 工作流程节点主键
     */
    /*@TableField("WK_FLW_NODE_ID")
    private String wkFlwNodeId;*/
    @Column(name = "TEST_NODE_NO")
    @TableField("TEST_NODE_NO")
    private String testNodeNo;

    /**
     * 默认结果
     */
    @Column(name = "OBSER_RESULT")
    @TableField("OBSER_RESULT")
    private String obserResult;

    @Transient
    @TableField(exist = false)
    private String userName;

}
